﻿@** Copyright 2013 Seven Spikes Ltd. All rights reserved. (http://www.nop-templates.com)
* http://www.nop-templates.com/t/licensinginfo
*@

@using Nop.Core;
@using Nop.Core.Infrastructure;

@model SevenSpikes.Nop.Plugins.MegaMenu.Models.MegaMenuModel
@{
    Html.AddScriptParts("~/Plugins/SevenSpikes.Core/Scripts/SevenSpikesExtensions.js");
    
    Html.AddScriptParts("~/Plugins/SevenSpikes.Nop.Plugins.MegaMenu/Scripts/MegaMenuResponsive.min.js");
}
<div class="menu-title"><span>@T("SevenSpikes.MegaMenu.ResponsiveMenuTitle")</span></div>
<ul class="mega-menu-responsive">
    @if (Model.Settings.IncludeHomePageLink)
    {
        <li>
            <a href="@Url.RouteUrl("HomePage")">@T("HomePage")</a>
        </li>
    }
    @if (Model.Settings.EnableCategories)
    {
        @Html.Action("GetCategoriesResponsive", "MegaMenu", Model.Categories)
    }
    @{
        MvcHtmlString megaMenuTopicBlock = Html.Action("TopicBlock", "MegaMenu", new { systemName = "MegaMenuTopic" });
    }
    @if (Model.Settings.EnableMegaMenuTopic && !MvcHtmlString.IsNullOrEmpty(megaMenuTopicBlock))
    {
        <li>
            @megaMenuTopicBlock
        </li>
    }
    @if (Model.Settings.EnableManufacturers)
    {
        @Html.Action("GetManufacturersResponsive", "MegaMenu", Model.Manufacturers)
    }
    @if (Model.Settings.IncludeMyAccountLink)
    {
        <li>
            <a href="@Url.RouteUrl("CustomerInfo")">@T("Account.MyAccount")</a>
        </li>
    }
    @if (Model.Settings.IncludeBlogLink)
    {
        <li>
            <a href="@Url.RouteUrl("Blog")">@T("Blog")</a>
        </li>
    }
    @if (Model.Settings.IncludeForumLink)
    {
        <li>
            <a href="@Url.RouteUrl("Boards")">@T("Forum.Forums")</a>
        </li>
    }
    @if (Model.Settings.IncludeAboutUsLink)
    {
        <li><a href="@Url.RouteUrl("Topic", new { SystemName = "aboutus" })">@T("AboutUs")</a></li>
    }
    @if (Model.Settings.IncludeContactUsLink)
    {
        <li>
            <a href="@Url.RouteUrl("ContactUs")">@T("ContactUs")</a>
        </li>
    }
</ul>
